package base.day25.ticket;

public class DemoTicket2 {
    public static void main(String[] args) {
        Ticket ticket=new Ticket();
        //Ticket ticket1=new Ticket();

        Thread t1=new Thread(ticket);
        Thread t2=new Thread(ticket);
        t1.setName("窗口一");
        t2.setName("窗口二");

        t1.start();
        t2.start();
    }
}
